<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div{
      background: #409eff;
      margin: 2.5px;
      padding: 2px 8px;
      border-radius: 2px;
      color: #fff;
      font-size: 14px;
    }
  </style>
</head>
<script>
  document.write('<table>')
  for (let i = 1; i <= 9; i++) {
    document.write('<tr>')
    for (let j = 1; j <= i; j++) {
      document.write('<td><div>'+j + ' x ' + i + ' = ' + (j*i) +'</div></td>')
    }
    document.write('</tr>')
  }
  document.write('</table>')
</script>
<body>
</body>
</html>